package cn.itcast.mapper;

import cn.itcast.feign.pojo.Hydropower;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface HydropowerMapper {
    @Insert("insert into db08_homework.tb_hydropower (check_id, price) " +
            "values " +
            "(#{checkId},#{price})")
    @Options(useGeneratedKeys = true ,keyProperty = "hydropowerId")
    void insert(Hydropower hydropower);
}
